// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_imgex;

import android.text.TextUtils;
import android.view.*;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.nnee.p_g.cls_b;
import com.nnee.p_img.p_video.cls_a;
import com.nnee.p_img.p_video.cls_u;
import com.nnee.p_pr.p_activity.p_view.cls_PrisImageView;

// Referenced classes of package com.nnee.p_imgex:
//            cls_ImageViewScanActiivity, j

public class cls_i extends  BaseAdapter
{

    public cls_i(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, cls_u u1, int k)
    {
        a = null;
        b = null;
        a = u1;
        b = cls_ImageViewScanActiivity;
        c = (LayoutInflater)b.getSystemService("layout_inflater");
        e = k;
    }

    static cls_ImageViewScanActiivity a(cls_i k)
    {
        return k.b;
    }

    public void a()
    {
        if(a != null)
        {
            a.d();
            a = null;
        }
        if(d != null)
            d = null;
        if(c != null)
            c = null;
        b = null;
    }

    public int getCount()
    {
        int k;
        if(a == null)
            k = 0;
        else
            k = a.b();
        return k;
    }

    public Object getItem(int k)
    {
        cls_a a1;
        if(a == null)
            a1 = null;
        else
            a1 = a.a(k);
        return a1;
    }

    public long getItemId(int k)
    {
        return (long)k;
    }

    public View getView(int k, View view, ViewGroup viewgroup)
    {
        com.nnee.p_g.cls_b.c("ImageScanAdapter1", (new StringBuilder()).append("arg0 is: ").append(k).toString());
        Object obj;
        if(view == null)
        {
            cls_PrisImageView prisimageview1 = (cls_PrisImageView)c.inflate(0x7f030015, null, false);
            prisimageview1.setLongClickable(true);
            obj = prisimageview1;
        } else
        {
            obj = view;
        }
        if(obj instanceof cls_PrisImageView)
        {
            cls_PrisImageView prisimageview = (cls_PrisImageView)obj;
            prisimageview.a(a.a(k));
            prisimageview.a(e);
            d = ((cls_a)getItem(k)).g();
            prisimageview.a().scrollTo(0, 0);
            prisimageview.a(new cls_j(this));
            if(TextUtils.isEmpty(d))
            {
                prisimageview.a(false);
                prisimageview.c(null);
            } else
            {
                prisimageview.c(d.toString());
                prisimageview.a(false);
            }
        }
        return ((View) (obj));
    }

    private cls_u a;
    private cls_ImageViewScanActiivity b;
    private LayoutInflater c;
    private CharSequence d;
    private int e;
}
